package com.evon.yardmanagement.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public class Auditable {

	@Column(name = "HSC_ID")
	private String createdBy;
	@Column(name = "HSU_ID")
	private String updatedBy;
	@Column(name = "HSC_TS")
	private Date createdDate;
	@Column(name = "HSU_TS")
	private Date updatedDate;

	/**
	 * @return the creted user name
	 */

	public String getCreatedUserName() {
		return createdBy;
	}

	/**
	 * Return the created time.
	 * 
	 * @return
	 */

	public Date getCreatedTime() {
		return createdDate;
	}

	/**
	 * Return the last updated user name.
	 * 
	 * @return
	 */

	public String getLastUpdatedUserName() {
		return updatedBy;
	}

	/**
	 * Return the last updated time.
	 * 
	 * @return
	 */

	public Date getLastUpdatedTime() {
		return updatedDate;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}

}
